package com.machine.filling.net.http.response;

/**
 * Created by LENOVO on 2017/12/16.
 * http接口返回基础类
 */

public class BaseHttpResponseBean {
    private String msg;//返回信息，成功返回“操作成功”，失败返回错误信息
    private String code;//0000代表操作成功

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 判断 是否操作成功
     * @return
     */
    public boolean isCode0000(){
        return "0000".equals(getCode());
    }
}
